package com.worthtech.billportal.service.imp;

import java.util.List;

import com.worthtech.billportal.dao.BaseDAO;
import com.worthtech.billportal.service.BaseService;

public class BaseServiceImp implements BaseService {
	private BaseDAO baseDao;
	
	public BaseDAO getBaseDao() {
		return baseDao;
	}

	public void setBaseDao(BaseDAO baseDao) {
		this.baseDao = baseDao;
	}

	public boolean delObj(Object obj) {
		return this.getBaseDao().delObj(obj);
	}

	public boolean saveObj(Object obj) {
		System.out.println("sevice");
		return this.getBaseDao().saveObj(obj);
	}

	public Object[][] getParams(String sql) {
		return this.getBaseDao().getParams(sql);
	}

	public boolean saveObjbyList(List<String> list) {
		return this.getBaseDao().saveObjbyList(list);
	}

	public int upOrde(String sql) {
		return this.getBaseDao().upOrde(sql);
	}

	public List getListBySql(String col, String tablename, String where) {
		return this.getBaseDao().getListBySql(col, tablename, where);
	}

	public List getListByHQL(String tableName, int startPage, int perNo,
			String orderby) {
		return this.getBaseDao().getListByHQL(tableName, startPage, perNo, orderby);
	}

}
